package com.huadao.cart_ccs.data.bo;

import com.huadao.cart_ccs.R;
import com.huadao.cart_ccs.main.CartApplication;

/**
 * 氧气
 */
public class O2BO extends AtmosphereBO {

//    public static final byte ModularType_O2 =0x4;
    public static final byte Atmosphere_O2 = 0x01;

//    public static final byte read= (byte) 0xFF;//读
//    public static final byte write= (byte) 0xCC;//写

    private double O2;

    @Override
    protected String getModularTypeStr() {
        return CartApplication.getInstance().getString(R.string.O2);
    }

    public double getO2() {
        return O2;
    }

    public void setO2(double o2) {
        O2 = o2;
    }

    @Override
    protected String getOrderStr() {
        if(order==stop){
            return CartApplication.getInstance().getString(R.string.stopO2);
        }else {
            return super.getOrderStr();
        }
    }

    @Override
    protected String getOrderContentStr() {
        if(order==stop){
            return super.getOrderContentStr();
        }
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(O2);
        return stringBuilder.toString();
    }
}
